<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Homepage_Controller</title>
<link href="../css/ea.css" rel="stylesheet" type="text/css" />
<script>
function initPage(src) {
	if(parent==this&&(this.location+"").indexOf('EARoot')!=-1)
		document.location=(this.location+"").substring(0,(this.location+"").indexOf('EARoot'))+"index"+(this.location+"").substring((this.location+"").lastIndexOf('.'))+"?goto="+((this.location+"").substring((this.location+"").indexOf('EARoot')+7,(this.location+"").lastIndexOf('.')).replace(/\//g,':').replace(/EA/g,""));
	else
		parent.initPage(src);
}
</script>
</head>
<body onload="initPage(this);" class="Content">
<div class="pageHeader"></div>
<div class="PageBody">
	<span class="ObjectTitle">Homepage_Controller  : public   class</span>
	<table border="0" cellpadding="0" cellspacing="0" class="ObjectDetails">
		<tr>
			<td width="15%" class="ObjectDetailsTopic">Created:</td>
			<td width="85%" class="ObjectDetailsValue">2/9/2010 9:01:08 PM</td>
		</tr>
		<tr>
			<td class="ObjectDetailsTopic">Modified:</td>
			<td class="ObjectDetailsValue">2/15/2010 7:35:54 PM</td>
		</tr>
		<tr style="height: 10px"><td colspan="2"></td></tr>
		<tr>
			<td class="ObjectDetailsTopic"><img src="../images/plus03.gif" align="absmiddle" id="proj" onclick="parent.toggleData(this.id)" />Project:</td>
			<td class="ObjectDetailsValue"></td>
		</tr>
		<tr id="proj00" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Author:</td>
			<td class="ObjectDetailsValue">Seba</td>
		</tr>
		<tr id="proj01" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Version:</td>
			<td class="ObjectDetailsValue">1.0</td>
		</tr>
		<tr id="proj02" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Phase:</td>
			<td class="ObjectDetailsValue">1.0</td>
		</tr>
		<tr id="proj03" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Status:</td>
			<td class="ObjectDetailsValue">Proposed</td>
		</tr>
		<tr id="proj04" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Complexity:</td>
			<td class="ObjectDetailsValue">Easy</td>
		</tr>
		<tr>
			<td class="ObjectDetailsTopic"><img src="../images/plus03.gif" align="absmiddle" id="adv" onclick="parent.toggleData(this.id)" />Advanced:</td>
			<td class="ObjectDetailsValue"></td>
		</tr>
		<tr id="adv00" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">UUID:</td>
			<td class="ObjectDetailsValue">{11995312-E313-4633-BBE6-DA3938836694}</td>
		</tr>
		<tr id="adv01" style="display: none;">
			<td class="ObjectDetailsTopic" style="padding-left: 18px;">Appears In:</td>
			<td class="ObjectDetailsValue"><a href="EA1.htm">Controller Class Diagram</a></td>
		</tr>
	</table>
	<div class="ObjectDetailsNotes">&lt;p&gt;El controlador Homepage se va a encargar de la interaccion principal con el usuario.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- Mostrar noticias&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- Novedades de otros usuarios / bandas&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(mas en la etapa 2)&lt;br /&gt;&lt;/p&gt;</div>

	<div class="TableGroup" id="TableGroup">
		<ul class="ItemTitle">
			<li onClick="parent.toggleItem('Operations');" id="OperationsTitle">Operations</li>
			<li onClick="parent.toggleItem('Links');" id="LinksTitle">Other Links</li>
		</ul>
<div class="ItemBody" id="OperationsTable">
	<table border="0" cellspacing="0" cellpadding="0" class="Table">
		<tr>
			<td width="100%" class="TableHeading">Operation</td>
		</tr>
						<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>about</strong>():void
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations1" onclick="parent.toggleDiv('detailsDIVOperations1','DetailsImageOperations1')" />Details:
						<div id="detailsDIVOperations1" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Muestra la vista about_view&lt;br /&gt;&lt;br /&gt;Armar la Session_bar (Session_Controller)&lt;br /&gt;Mostrar la vista about_view&lt;br /&gt;
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>home</strong>():void
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations2" onclick="parent.toggleDiv('detailsDIVOperations2','DetailsImageOperations2')" />Details:
						<div id="detailsDIVOperations2" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Muestra el Homepage_view&lt;br /&gt;&lt;br /&gt;Armar la session_Bar (Session_controller)&lt;br /&gt;Armar el newsFrame (this-&gt;showNewsItem)&lt;br /&gt;Mostrar Homepage_view
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>login</strong>(<br />
					<a href="#" onclick="parent.toggleData('param{374350F7-D31A-488d-81F2-0D4C3904C42A}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{374350F7-D31A-488d-81F2-0D4C3904C42A}" border="0" />sessionOK: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{374350F7-D31A-488d-81F2-0D4C3904C42A}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{374350F7-D31A-488d-81F2-0D4C3904C42A}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>return</td>
						</tr>
						<tr id="param{374350F7-D31A-488d-81F2-0D4C3904C42A}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{374350F7-D31A-488d-81F2-0D4C3904C42A}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">- True si la sesion se inicio correctamente<br />- False si fallo</div>
</td>
						</tr>
					</table>
					<a href="#" onclick="parent.toggleData('param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}" border="0" />password: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>in</td>
						</tr>
						<tr id="param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{9B4D3BB9-CED0-4c31-B04C-F05F0D91EED1}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Password que sacamos del textbox</div>
</td>
						</tr>
					</table>
					<a href="#" onclick="parent.toggleData('param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}" border="0" />username: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>in</td>
						</tr>
						<tr id="param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{67D1E7CE-8BAB-4f3d-BF34-D6546F92BC23}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Nombre de usuario que sacamos del textbox.</div>
</td>
						</tr>
					</table>
):var
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations3" onclick="parent.toggleDiv('detailsDIVOperations3','DetailsImageOperations3')" />Details:
						<div id="detailsDIVOperations3" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Esta funcion llama a las funciones necesarias para checkear que el usuario sea quien dice ser y luego le genera la sesion correspondiente.&lt;br /&gt;&lt;br /&gt;Validator_Controller-&gt;checkUser (??)&lt;br /&gt;Session_Controller-&gt;startSession&lt;br /&gt;Si esta todo bien logeamos y devolvemos true&lt;br /&gt;Sino, devolvemos false y redireccionamos a la pagina de sesion incorrecta&lt;br /&gt;mostrando que error ocurrio&lt;br /&gt;
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>register</strong>(<br />
					<a href="#" onclick="parent.toggleData('param{7356AC62-DF28-4728-B978-95C1B5672113}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{7356AC62-DF28-4728-B978-95C1B5672113}" border="0" />return: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{7356AC62-DF28-4728-B978-95C1B5672113}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{7356AC62-DF28-4728-B978-95C1B5672113}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>return</td>
						</tr>
						<tr id="param{7356AC62-DF28-4728-B978-95C1B5672113}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{7356AC62-DF28-4728-B978-95C1B5672113}03" style="display: none;">
							<td width="50"></td>
							<td></td>
						</tr>
					</table>
):var
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations4" onclick="parent.toggleDiv('detailsDIVOperations4','DetailsImageOperations4')" />Details:
						<div id="detailsDIVOperations4" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Inicia el proceso de registracion de un nuevo usuario&lt;br /&gt;&lt;br /&gt;Validator_Controller-&gt;RegisterForm (??)&lt;br /&gt;
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>search</strong>(<br />
					<a href="#" onclick="parent.toggleData('param{45928153-54F4-4244-9632-18AD7A1E437D}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{45928153-54F4-4244-9632-18AD7A1E437D}" border="0" />text: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{45928153-54F4-4244-9632-18AD7A1E437D}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{45928153-54F4-4244-9632-18AD7A1E437D}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>in</td>
						</tr>
						<tr id="param{45928153-54F4-4244-9632-18AD7A1E437D}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{45928153-54F4-4244-9632-18AD7A1E437D}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Lo que este en el textbox de busqueda</div>
</td>
						</tr>
					</table>
):void
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations5" onclick="parent.toggleDiv('detailsDIVOperations5','DetailsImageOperations5')" />Details:
						<div id="detailsDIVOperations5" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Llama al Search_Controller y trata de buscar en todos lados lo que haya en el textbox.&lt;br /&gt;
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td width="100%" class="TableRow">
					<i>public</i><br />
					<strong>showNewsItem</strong>(<br />
					<a href="#" onclick="parent.toggleData('param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}" border="0" />newsItem: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>return</td>
						</tr>
						<tr id="param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{5DCAE973-058C-4d93-ACB1-3984F3FC5BA3}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Array con todos los items de noticias que trajo la funcion,  ya formateados y listo para pegar en la vista</div>
</td>
						</tr>
					</table>
					<a href="#" onclick="parent.toggleData('param{E29D8DB6-B583-4053-906E-852000A228BB}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{E29D8DB6-B583-4053-906E-852000A228BB}" border="0" />fStyle: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{E29D8DB6-B583-4053-906E-852000A228BB}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{E29D8DB6-B583-4053-906E-852000A228BB}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>in</td>
						</tr>
						<tr id="param{E29D8DB6-B583-4053-906E-852000A228BB}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{E29D8DB6-B583-4053-906E-852000A228BB}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Define el estilo que se utilizara para formatear los items de noticias<br /><br />- Short<br />- Full<br />- Alguno mas?</div>
</td>
						</tr>
					</table>
					<a href="#" onclick="parent.toggleData('param{16F19892-423A-4421-BE11-962639FA6271}')" style="text-decoration: none; color: #000000;"><img src="../images/plus03.gif" align="absmiddle" id="param{16F19892-423A-4421-BE11-962639FA6271}" border="0" />count: var</a>, 
					<table border="0" cellspacing="0" cellpadding="0" class="Table" style="padding: 4px 18px;">
						<tr id="param{16F19892-423A-4421-BE11-962639FA6271}00" style="display: none;">
							<td width="50"><strong>Default:</strong></td>
							<td></td>
						</tr>
						<tr id="param{16F19892-423A-4421-BE11-962639FA6271}01" style="display: none;">
							<td width="50"><strong>Kind:</strong></td>
							<td>in</td>
						</tr>
						<tr id="param{16F19892-423A-4421-BE11-962639FA6271}02" style="display: none;">
							<td width="50"><strong>Stereotype: </strong></td>
							<td></td>
						</tr>
						<tr id="param{16F19892-423A-4421-BE11-962639FA6271}03" style="display: none;">
							<td width="50"></td>
							<td><div class="ObjectDetailsNotes">Cantidad maxima de items para traer</div>
</td>
						</tr>
					</table>
):var
				</td>
			</tr>
			<tr>
				<td class="TableRowBottomDashed"  colspan="1">
					<div class="DetailsDivParent"><img src="../images/minus03.gif" align="absmiddle" id="DetailsImageOperations6" onclick="parent.toggleDiv('detailsDIVOperations6','DetailsImageOperations6')" />Details:
						<div id="detailsDIVOperations6" class="DetailsDiv" >
					<i>Sequential  </i>
					<table>
						<tr>
							<td valign = "top"><i></i><span style="margin-left: .7cm;"> </span></td>
							<td></td>
						</tr>
					</table>
					<div class="ObjectDetailsNotes"><table>
	<tr>
		<td valign="top">
			<i>Notes: </i><span style="margin-left: .4cm;"> </span>
		</td>
		<td>
			Arma el formato de los items de noticias que en primera instancia se van a mostrar en la homepage.&lt;br /&gt;&lt;br /&gt;Homepage_Model-&gt;getNewsItem&lt;br /&gt;&lt;br /&gt;Case (fStyle)&lt;br /&gt;&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR> - Short (Formatea el item de noticias con el estilo acotado)&lt;br /&gt;&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR> - Full (Formatea el item de noticias con el estilo completo con todas las luces)&lt;br /&gt;Fin Case&lt;br /&gt;&lt;br /&gt;Retorna un array con los items ya formateados y listos para ser pegados en la vista
		</td>
	</tr>
</table></div>
						
						</div>
					</div>
				</td>
			</tr>

		</table>
</div>		<div class="ItemBody" id="LinksTable">
			<table align="center" border="0" cellspacing="0" cellpadding="0" class="Table">
				<tr>
					<td width="30%" class="TableHeading">Object</td>
					<td width="15%" class="TableHeading">Type</td>
					<td width="15%" class="TableHeading">Connection</td>
					<td width="40%" class="TableHeading">Notes</td>
				</tr>
				<tr>
					<td width="30%" class="TableRow" valign="top"><a href="EA3.htm">Controller</a></td>
					<td width="15%" class="TableRow" valign="top">Class</td>
					<td width="15%" class="TableRow" valign="top">Generalization</td>
					<td width="40%" class="TableRow" valign="top">&nbsp;</td>
				</tr>

			</table>
		</div>
	</div>
<div class="pageFooter"></div>
 
</body>
</html>